package com.jinzhi.jzweb.domain;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;


/**
 * 
 * <pre>
 * 课程表
 * </pre>
 * <small> 2020-02-24 21:04:54 | lance</small>
 */
@Data
@SuppressWarnings("serial")
@TableName("jz_courses")
//这是的这里继承的基础服务类，有几个基本字段
public class CoursesDO implements Serializable {
	@TableId
	private Long id;

    @ApiModelProperty(value = "课程名")
    @TableField("name")
    private String name;

    /** 会员姓名，虚拟字段 */
    @TableField(exist = false)
    private String userName;

    @ApiModelProperty(value = "会员id（讲师）")
    @TableField("user_id")
    private Long userId;

    /** 机构名，虚拟字段 */
    @TableField(exist = false)
    private String orgName;

    @ApiModelProperty(value = "机构id")
    @TableField("org_id")
    private Long orgId;

    @ApiModelProperty(value = "缩略图")
    @TableField("thumbnail")
    private String thumbnail;

    @ApiModelProperty(value = "内容描述")
    @TableField("introduce")
    private String introduce;

    @ApiModelProperty(value = "指导价")
    @TableField("guidance_price")
    private Double guidancePrice;

    @ApiModelProperty(value = "优惠价")
    @TableField("special_price")
    private Double specialPrice;

    /** 证书名，虚拟字段 */
    @TableField(exist = false)
    private String profileName;

    @ApiModelProperty(value = "证书概况id")
    @TableField("profile_id")
    private Long profileId;

    @ApiModelProperty(value = "1.压缩包2.文档3.视频4.图片5.音频 ")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "状态（0展示，1不展示） ")
    @TableField("state")
    private Integer state;

    @ApiModelProperty(value = "课程通过条件 ")
    @TableField("adopt_factor")
    private String adoptFactor;

    @ApiModelProperty(value = "创建人")
    @TableField("creater_name")
    private String createrName;

    @ApiModelProperty(value = "创建人id ")
    @TableField("creater_id")
    private Long createrId;

    @ApiModelProperty(value = "创建时间 ")
    @TableField("creater_date")
    private Date createrDate;

    /** 修改人姓名，虚拟字段 */
    @TableField(exist = false)
    private String updateName;

    @ApiModelProperty(value = "修改人id ")
    @TableField("updater_id")
    private Long updaterId;

    @ApiModelProperty(value = "修改时间 ")
    @TableField("update_date")
    private Date updateDate;

    @ApiModelProperty(value = "浏览量 ")
    @TableField("browse_num")
    private Integer browseNum;

    @ApiModelProperty(value = "课程介绍图片 ")
    @TableField("introduce_portrait")
    private String introducePortrait;

    @ApiModelProperty(value = "课程插图 ")
    @TableField("illustration")
    private String illustration;

    @ApiModelProperty(value = "课程讲师 ")
    @TableField("cou_name")
    private String couName;

    @ApiModelProperty(value = "课程介绍 ")
    @TableField("cou_introduce")
    private String couIntroduce;

    @ApiModelProperty(value = "1.精品课程2.自建课程")
    @TableField("new_type")
    private Integer newType;

    @ApiModelProperty(value = "默认为0，逻辑删除为1")
    @TableField("is_deleted")
    private Integer isDeleted;

    @ApiModelProperty(value = "分享0，默认不分享")
    @TableField("publicity")
    private Integer publicity;

    @ApiModelProperty(value = "资源优先级")
    @TableField("sort")
    private Integer sort;


    @ApiModelProperty(value = "资源编号")
    @TableField("assets_id")
    private String assetsId;

    @ApiModelProperty(value = "章节数量")
    @TableField(exist = false)
    private Long chapterNum;

    @ApiModelProperty(value = "课程编码修改时间")
    @TableField("code_mode_date")
    private Date codeModeDate;
}
